package common;

public enum ResultCodeEnum {
    SUCCESS(200, "成功"),
    USERNAME_ERROR(501, "用户名不存在"),
    PASSWORD_ERROR(503, "密码错误"),
    USERNOTLOGIN(405, "用户未登录"),
    USERNAME_USED(406, "用户名已存在");
    private Integer code;
    private String message;
    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


}
